const user  = {
  state : {
    name:'I am store name ',
    avatar:'',
    token: '',
  },
  getters : {
    token: state => state.token,
    avatar: state => state.avatar,
    name: state => state.name,
  },
  mutations: {
    SET_NAME: (state, name) => {
      state.name = name
    },
    SET_AVATAR: (state, avatar) => {
      state.avatar = avatar
    }
  },
  actions:{
      //登出
  
      // 动态修改权限;本实例中,role和token是相同的;
      
  }
}

export default user;